<template>
	<view class="wrap bgw content">
		<image class="IconTypes" src="../../static/image/SuccessType.png" mode=""></image>
		<p class="p1">
			{{title}}
		</p>
		<p class="p2">{{msg}}</p>
		<!-- <u-button :ripple="true" type="success">重新提交</u-button> -->
		<u-button @tap="backs()"  type="success" >返回</u-button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				state:'',
				title:'',
				msg:''
			};
		},
		onLoad(e) {
			this.state = e.state
			if(e.state == 'shopCreate'){
				this.title = '恭喜您，开店成功啦！'
				this.msg = '开店成功了，可以去管理您的店铺了'
			}
			if(e.state == 'storeUpdate'){
				this.title = '恭喜您，修改成功成功啦！'
				this.msg = '修改成功了，可以去管理您的店铺了'
			}
			if(e.state == 'comment'){
				this.title = '恭喜您，评价成功啦！' 
			}
		},
		methods:{
			toOrderPage(){
				var url = "../buy/buy";
				this.$common.navigateTo(url);
			},
			backs(){
				 uni.navigateBack()
			}
		}
	}
</script>

<style lang="less" scoped>
.content{
	text-align: center;
}
.IconTypes{
	margin-top: 88rpx;
	width: 200rpx;
	height: 140rpx;
}
.p1{
	margin-top: 25rpx;
	font-size:36rpx;
	font-family:PingFang SC;
	font-weight:bold;
	color:rgba(26,26,26,1);
}
.p2{
	margin-top: 30rpx;
	font-size:28rpx;
	font-family:PingFang SC;
	font-weight:400;
	color:rgba(136,136,136,1);
}
button{
	margin-top: 204rpx;
	width:400rpx;
	height:78rpx; 
	// box-shadow:0px 4px 16px 0px rgba(22,187,111,0.42);
	border-radius:39px;
}
</style>
